package com.feign;

import com.feign.hystrix.SmsFeignHystrix;
import com.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "msg-server", fallback = SmsFeignHystrix.class)
public interface SmsFeignApi {
    @GetMapping("/sms/checkPhone")
    JsonResult sendVerifyCode(@RequestParam("phone") String phone);
    @GetMapping("/sms/checkVerifyCode")
    JsonResult checkVerifyCode(@RequestParam("phone")String phone,@RequestParam("verifyCode")String verifyCode);

}